﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.tailingpond_daily_water_info>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	水位及水质（每日）
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul class="top_tab">
                <li><a href="javascript:return(false);" class="current"><span>水位及水质</span></a></li>
                <li><a href="/Record/TailingpondBackWater/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>进浆及回水</span></a></li>
                <li><a href="/Record/TailingpondDitch/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>沉降及位移</span></a></li>
                <li><a href="/Record/TailingpondFilldam/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>尾矿堆积坝</span></a></li>	        
            </ul>
	    </div>
	</div>

    <%
           bool result = (bool)ViewData["success"];
           if(result){ 
        %>
            <div class="tips_area">水位及水质更新成功</div>
        <%
        }
        %>

    <% using (Html.BeginForm())
    {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.tailingpond_id) %>
        <%= Html.HiddenFor(model => model.date) %>
        <%= Html.Hidden("factoryId", ViewData["factoryId"]) %>
    
    <table cellpadding="4" cellspacing="0" class="com_from_table" style="width:756px;">
        <tr>
            <th colspan="2">水位及水质（每日 - <%= Model.date.Year%>年<%=Model.date.Month%>月<%=Model.date.Day%>日）</th>
        </tr>
        <tr>
            <td class="lab" style="width:126px;">测量人员：</td>
            <td>
                <%= Html.DropDownList("tester_id", ViewData["users"] as List<SelectListItem>, "请选择", new { style = "width:150px" })%>
                <%= Html.ValidationMessageFor(model => model.tester_id)%>
            </td>

        </tr>
    </table>


    <fieldset class="tf_style2">
        <table cellpadding="4" cellspacing="0" class="com_from_table" style="margin-top:8px; padding:10px 0;">
            <tr>
                <td class="lab" style="width:110px;">库区水位：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.reservoir_water_level, new { style = "width:60px" })%> m
                    <%= Html.ValidationMessageFor(model => model.reservoir_water_level)%>
                </td>
                <td class="lab" style="width:110px;">库区PH值：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.reservoir_water_ph, new { style = "width:60px" })%> 
                    <%= Html.ValidationMessageFor(model => model.reservoir_water_ph)%>
                </td>
                <td class="lab" style="width:110px;">库区水量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.reservoir_water_capacity, new { style = "width:60px" })%> <span class="color00f">万m<sup>3</sup>（每周）</span>
                    <%= Html.ValidationMessageFor(model => model.reservoir_water_capacity)%>
                </td>
            </tr>
            <tr>
            
                <td class="lab">调节水池水位：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.pool_water_level, new { style = "width:60px" })%> m
                    <%= Html.ValidationMessageFor(model => model.pool_water_level)%>
                </td>
                <td class="lab">调节水池PH值：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.pool_water_ph, new { style = "width:60px" })%> 
                    <%= Html.ValidationMessageFor(model => model.pool_water_ph)%>
                </td>
                <td class="lab">调节水池水量：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.pool_water_capacity, new { style = "width:60px" })%> <span class="color00f">万m<sup>3</sup>（每周）</span>
                    <%= Html.ValidationMessageFor(model => model.pool_water_capacity)%>
                </td>
            </tr>
            <tr>
            
                <td class="lab">下游河流水位：</td>
                <td>
                    <%= Html.TextBoxFor(model => model.downstream_water_level, new { style = "width:60px" })%> m
                    <%= Html.ValidationMessageFor(model => model.downstream_water_level)%>
                </td>
                <td class="lab">下游河流PH值：</td>
                <td colspan="3">
                    <%= Html.TextBoxFor(model => model.downstream_water_ph, new { style = "width:60px" })%> 
                    <%= Html.ValidationMessageFor(model => model.downstream_water_ph)%>
                </td>
            </tr>
        </table>
    </fieldset>

    <fieldset class="tf_style">
        <legend>当日情况补充：</legend>
        <p>
            <%= Html.TextAreaFor(model => model.description, new { cols = "80", rows = "5" })%>
            <%= Html.ValidationMessageFor(model => model.description)%>
        </p>

    </fieldset>

    <div class="submit_btn_area" style="margin-left:138px;">
        <input type="submit" value="提 交" />
    </div>

    <% } %>
    
</asp:Content>
